export default [
  {
    path: "/db/status",
    name: 'DbStatus',
    meta: {
      title: '数据库详情'
    },
    component: () => import('~/pages/db/Status.vue')
  },
  {
    path: "/db/:dbIndex/:schema",
    name: "DbDetail",
    meta: {
      title: "数据库详情"
    },
    component: () => import("~/pages/db/Detail.vue"),
    children: [
      {
        path: ":tableName/columns",
        name: "Columns",
        component: () => import("~/pages/db/table/Columns.vue")
      },
      {
        path: ":tableName/datas",
        name: "Datas",
        component: () => import("~/pages/db/table/Datas.vue")
      },
      {
        path: ":tableName/ddl",
        name: "DDL",
        component: () => import("~/pages/db/table/DDL.vue")
      },
      {
        path: ':tableName/dml',
        name: "DML",
        component: () => import('~/pages/db/table/DML.vue')
      },
      {
        path: ":tableName/ddl",
        name: "Entity",
        component: () => import("~/pages/db/table/Entity.vue")
      }
    ]
  },
  {
    name: "Compare",
    path: "/db/compare",
    meta: {
      title: "数据库比较"
    },
    component: () => import('~/pages/db/Compare.vue')
  }
];
